<?php

require_once 'classes/LightPressPlugin.php';

class AboutMe extends LightPressPlugin {
    
    var $constructor_args = array(
        'message'=>'message to display');
    var $default_context = LP_CONTEXT_INDEX;
    var $description = 'Display some user-defined text';
    
    var $active = true;
    var $hooks = array('sidebar');
    
    var $message = 'You can customize AboutMe\'s message from the WP console.';
    
    function AboutMe(&$frontend, $args, $dummy_run=false) {
        $this->LightPressPlugin($frontend, $args, $dummy_run);
    }
    
    function run($hook, &$payload) {
        $tpl =& $this->_frontend->tpl;
        $tpl->setFile('plugin_aboutme', 'plugins/about_me.xml');
        $tpl->setVar('plugin_aboutme_message', $this->message);
        $tpl->parse('PLUGIN_ABOUTME', 'plugin_aboutme');
    }
    
}

?>